﻿<%@ Page Title="" Language="C#" 
MasterPageFile="~/Views/Shared/Site.Master" 
Inherits="System.Web.Mvc.ViewPage<IEnumerable<CI.Caja.BE.BE_Personal>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Mantener Personal
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Mantener Personal</h2>

    <p>
        <%: Html.ActionLink("Agregar Personal", "Create") %>
    </p>
    <table>
        <tr>
            <th></th>
            <th>
               Código
            </th>
            <th>
                Nombre
            </th>
            <th>
                Apellido
            </th>
            <th>
                Nro DNI
            </th>
            <th>
                Cargo
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Modificar", "Edit",         new { id= item.IdPersonal }) %> |
                <%: Html.ActionLink("Ver Detalle", "Details",   new { id= item.IdPersonal }) %> |
            </td>
            <td>
                <%: item.IdPersonal %>
            </td>
            <td>
                <%: item.Nombre %>
            </td>
            <td>
                <%: item.Apellido %>
            </td>
            <td>
                <%: item.NumDNI %>
            </td>
            <td>
                <%: item.Cargo.Descripcion %>
            </td>
            </tr>
    
    <% } %>

    </table>

    

</asp:Content>

